//
//  ShowOnePicViewController.m
//  HuateVideo
//
//  Created by Tiger on 12-9-18.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "ShowOnePicViewController.h"

@interface ShowOnePicViewController ()

@end

@implementation ShowOnePicViewController

- (id)init
{
    self = [super init];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}

-(void)showPicture:(UIImage *)image
{
    UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 300, 396)];
    imageView.image = image;
    [self.view addSubview:imageView];
    [imageView release];
}

-(void)viewWillDisappear:(BOOL)animated{
	[super viewWillDisappear:animated];
    
    AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
    [delegate.tabbar ShowTabBarWithAnimate];
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
    [delegate.tabbar dissmissTabBarWithAnimate];
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
